package csm.api.search.impl;

import java.util.HashMap;

import csm.api.search.ISearchResult;

public class SearchResultBase implements ISearchResult
{
    private String rawResult;
    private int hitCount;
    private HashMap<String, String> items;

    public SearchResultBase()
    {
        items = new HashMap<String, String>();
    }

    public void setHitCount(int hitCount)
    {
        this.hitCount = hitCount;
    }

    public int getHitCount()
    {
        return this.hitCount;
    }

    public String getItem(String key)
    {
        if( !items.containsKey(key)) return null;
        return items.get(key);
    }

    public void setRawString(String rawResult)
    {
        this.rawResult = rawResult;
    }
    public String getRawString()
    {
        return this.rawResult;
    }
}
